You are here: Symbol Reference > Monnit.Mine Namespace > Gateway Class > Gateway Constructor > Gateway.Gateway Constructor (uint, eGatewayType, string, string, string, int, byte[], byte[], byte[])
Gateway.Gateway Constructor (uint, eGatewayType, string, string, string, int, byte[], byte[], byte[])
Gateway Class  Gateway Members  Gateway Constructor  Send Feedback

Presets these properties 

GatewayType GatewayFirmwareVersion RadioFirmwareVersion Host Port PreSharedEncryptionKey 

Sets all other properties to default values

Syntax
C++
C#
Visual Basic
Gateway(unsigned gatewayID, eGatewayType gatewayType, string gatewayFirmwareVersion, string radioFirmwareVersion, string hostAddress, int port, byte[] preSharedEncryptionKey, byte[] encryptionKey, byte[] encryptionIV);
Parameters 
Description 
uint gatewayID 
Numerical identifier of the gateway. 
eGatewayType gatewayType 
Type of gateway. 
string gatewayFirmwareVersion 
Gateway firmware version. 
string radioFirmwareVersion 
Radio firmware version. 
string hostAddress 
IP Address or DNS resolvable host name address the gateway uses to communicate to the server. 
int port 
Port the gateway will use to communicate to the server. 
byte[] preSharedEncryptionKey 
Static pre-shared key for initializing encryption handshake 
byte[] encryptionKey 
Encryption key generated during handshake, if server is restarted or multiple server instances are configured this key needs to match across all instances or the gateway will have to re initialize its security handshake 
byte[] encryptionIV 
Initialization vector generated during handshake, if server is restarted or multiple server instances are configured this key needs to match across all instances or the gateway will have to re initialize its security handshake